import service from '@/utils/request'

export const createAdsConfig = (data) => {
  return service({
    url: '/adsConfig/createAdsConfig',
    method: 'post',
    data
  })
}

export const deleteAdsConfig = (data) => {
  return service({
    url: '/adsConfig/deleteAdsConfig',
    method: 'delete',
    data
  })
}

export const deleteAdsConfigByIds = (data) => { 
  return service({
    url: '/adsConfig/deleteAdsConfigByIds',
    method: 'delete',
    data
  })
}

export const updateAdsConfig = (data) => {
  return service({
    url: '/adsConfig/updateAdsConfig',
    method: 'put',
    data
  })
}

export const findAdsConfig = (params) => {
  return service({
    url: '/adsConfig/findAdsConfig',
    method: 'get',
    params
  })
}

export const getAdsConfigList = (params) => {
  return service({
    url: '/adsConfig/getAdsConfigList',
    method: 'get',
    params
  })
}

export const getAllAdsConfigs = (params) => {
  return service({
    url: '/adsConfig/getAllAdsConfigs',
    method: 'get',
    params
  })
}